"""DjangoFirst URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,re_path,include
from DjangoFirst.views import *
from News.views import *
from django.views.decorators.csrf import csrf_exempt

urlpatterns = [
    path('admin/', admin.site.urls),
    path('ckeditor',include('ckeditor_uploader.urls')),
    path('setCookie/',setCookie),
    path('register/',register),
    path('login/',login),
    path('index/',index),
    path('logout/',logout),
    path('vue/',vueExample),
    path('foods/',csrf_exempt(FoodView.as_view())),
]

urlpatterns += [
    path('indexll/',indexll),
    path('select/',select),
    path('news/',news),
    path('del_cookie/',del_cookie),
    path('base/',base)
]

urlpatterns += [
path('add_food_type/',add_food_type),
    path('rE/',requestExample),
    path('find_food/',find_food),
    path('add_food/',add_food),
    path('ajax_get_page/',ajax_get_page),
    path('ajax_get_data/',ajax_get_data),
    path('app/',app),
    path('apd/',apd),
    path('form_check/',form_check),
    path('p_form/',p_form),
]

urlpatterns += [
    path('cheng/',cheng),
    path('fengche/',fengche),
    path('che/',che),
    path('taiji/',taiji),
    path('ym/',ym),
    path('tm/',tm),
    path('Example/',Example),
    path('tmhttp/',tmhttp),
    path('tam/',tam),
    re_path('ge/(?P<month>\d{2})/(?P<day>\d{2})/',geet),
    path('add_type/',add_type),
    path('add_News/',add_News),
    path('selectExample/',selectExample),
    path('sese/',sese),
    path('Examplell/',Examplell),
    path('ajax_vue/',ajax_vue),
    path('meishi/',meishi),
    path('newsss/',newsss),
]

from News.urls import router
urlpatterns += router.urls